﻿using FreeSql.DatabaseModel;using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;

namespace ConsoleApp1.Models.DB {

	[JsonObject(MemberSerialization.OptIn), Table(Name = "t_DZUsual", DisableSyncStructure = true)]
	public partial class TDZUsual {

		[JsonProperty, Column(IsPrimary = true, IsIdentity = true)]
		public long Id { get; set; }

		/// <summary>
		/// 电池电压
		/// </summary>
		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? BV { get; set; }

		[JsonProperty]
		public int? Code { get; set; }

		[JsonProperty]
		public DateTime? CreateTime { get; set; }

		/// <summary>
		/// 小数据时间
		/// </summary>
		[JsonProperty]
		public DateTime? DATA { get; set; }

		[JsonProperty, Column(Name = "deviceId")]
		public long? DeviceId { get; set; }

		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? DYA { get; set; }

		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? DYB { get; set; }

		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? DYC { get; set; }

		/// <summary>
		/// GPS东经
		/// </summary>
		[JsonProperty, Column(DbType = "decimal(18,7)")]
		public decimal? GPSE { get; set; }

		/// <summary>
		/// GPS北纬
		/// </summary>
		[JsonProperty, Column(DbType = "decimal(18,7)")]
		public decimal? GPSN { get; set; }

		/// <summary>
		/// 火光，0无，1有
		/// </summary>
		[JsonProperty]
		public int? HG { get; set; }

		/// <summary>
		/// MIC唤醒次数
		/// </summary>
		[JsonProperty]
		public int? MIC { get; set; }

		/// <summary>
		/// 倾斜角度
		/// </summary>
		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? QXA { get; set; }

		/// <summary>
		/// 水位
		/// </summary>
		[JsonProperty]
		public int? SW { get; set; }

		[JsonProperty, Column(StringLength = -2)]
		public string TerminalId { get; set; }

		/// <summary>
		/// 大数据包时间
		/// </summary>
		[JsonProperty]
		public DateTime? Time { get; set; }

		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? WDA { get; set; }

		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? WDB { get; set; }

		[JsonProperty, Column(DbType = "decimal(18,2)")]
		public decimal? WDC { get; set; }

		/// <summary>
		/// 振动唤醒次数
		/// </summary>
		[JsonProperty]
		public int? ZD { get; set; }

	}

}
